var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});


var fs = require('fs');
router.get('/get',function(req,res){
  var data = fs.readFileSync("json/1.json",{encoding:"utf-8"});
  var data1 = JSON.parse(data);
  
  
  res.json(data1)
})

module.exports = router;
